#include "stdio.h"
//#include "math.h"
/*
时间：20181022
编号：F05
功能：输入a和b，求a加b的绝对值的值
*/

int main(){
    float a,b,s;
    printf("输入ab的值：");
    scanf("%f%f",&a,&b);
    //s = a + abs(b); //方法一，需加math.h头文件
    //if(b < 0) {b = -b; s = a + b;} //方法二
    //b = (b < 0)? -b : b; s = a + b; //方法三
    printf("%g + |%g| = %g\n",a,b,s);
    return 0;
}